Skip to main content

Class Connector<TPinDefinition>

Represents a Collection of IPins

Assembly: Meadow.Contracts.dll
View Source
public abstract class Connector<TPinDefinition> : IConnector, IIOController<TPinDefinition> where TPinDefinition : IPinDefinitions

Derived:
Meadow.Hardware.GroveDigitalConnector, Meadow.Hardware.I2cConnector, Meadow.Hardware.MikroBusConnector, Meadow.Hardware.UartConnector

Implements:
Meadow.IConnector, Meadow.Hardware.IIOController<T>

Properties

Name

The Connector's name

View Source
public string Name { get; }

Pins

Gets the Controller's IPinDefinitions

View Source
public TPinDefinition Pins { get; }

Methods

GetPin(string)

Retrieves a pin by Name or Key

View Source
public IPin? GetPin(string pinName)
Returns

Meadow.Hardware.IPin

Parameters
TypeName
System.StringpinName

Implements